﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Data;
using DevExpress.Skins;
using DevExpress.UserSkins;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using Model;

namespace WindowsForms
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            BonusSkins.Register();
            SkinManager.EnableFormSkins();
            Application.EnableVisualStyles();
            //Vn5tech.HoangHung.Entities.NMHungDBDataContext.ConnectionString = @"Data Source=5tech.dyndns.info;Initial Catalog=NMHUNG_Dev;User ID=nmh_usr;Password=nmh111";
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Login frmLog = new Login();
            if (frmLog.ShowDialog() == DialogResult.OK)
            {
                Staffs staff = Login.STAFF_IDENTITY;
                Application.Run(new Main(staff));
            }
            //Application.Run(new Report.rptHistoryBooking());
            //Application.Run(new BookingsProcess());
        }
    }
}
